import Vue from 'vue'
import { Button, Form, FormItem, Input, Message, Header, Aside, Main, Menu, MenuItem, MenuItemGroup, Breadcrumb, BreadcrumbItem, Row, Col, Card, Table, TableColumn, Tooltip, MessageBox, Tree, Select, Option } from 'element-ui'

Vue.use(Button, Form, FormItem, Input, Header, Aside, Main, Menu, MenuItem, MenuItemGroup, Breadcrumb, BreadcrumbItem, Row, Col, Card, Table, TableColumn, Tooltip, MessageBox, Tree, Select, Option)
// 将 message 挂载到 vue 的原型对象上，每一个组件可以通过this访问到 $meaasge
// message 的名字是自定义的
Vue.prototype.$message = Message
Vue.prototype.$confirm = MessageBox.confirm
